//
//  KLSplashView.h
//  Launch
//
//  Created by Tommy on 15/4/7.
//  Copyright (c) 2015年 com.taobao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KLSplashView;

typedef void(^KLSplashViewTapHandler)(KLSplashView *view);

@interface KLSplashView : UIView

@property(strong,nonatomic) UIImageView *imageView;
@property(strong,nonatomic) UIButton    *skipBtn;

+ (KLSplashView *)splashViewWithImage:(UIImage*)image andHandler:(KLSplashViewTapHandler)tapHandler;
+ (KLSplashView *)showSplashViewWithImage:(NSString*)imageName andHandler:(KLSplashViewTapHandler)tapHandler;
+ (KLSplashView *)showSplashViewOn:(UIView *)parentView withImage:(NSString*)imageName andHandler:(KLSplashViewTapHandler)tapHandler;



+ (void)presentSplashViewWithImage:(NSString*)imageName andHandler:(KLSplashViewTapHandler)tapHandler;

- (instancetype)initWithImage:(UIImage*)image andHandler:(KLSplashViewTapHandler)tapHandler;
- (void)showAnimation;
- (void)hideAnimation;


@end
